package com.coderman.utils.error;

/**
 * Description:通用异常提醒
 * date: 2021/10/26
 *
 * @author fanchunshuai
 * @version 1.0.0
 * @since JDK 1.8
 */
public enum  CommonErrorEnum implements IErrorEnum {


    DEFAULT_ERROR("E00000000", "系统异常"),
    REQUEST_OBJECT_IS_NULL_ERROR("W00000001", "入参对象为空"),
    PARAMS_CANNOT_BE_NULL_ERROR("W00000002", "参数不能为空"),
    DAO_ERROR("E0000003", "数据库处理异常"),
    ;
    private String code;
    private String msg;
    CommonErrorEnum(String code,String msg){
        this.code = code;
        this.msg = msg;
    }


    @Override
    public String getErrorCode() {
        return code;
    }

    @Override
    public String getErrorMsg() {
        return msg;
    }
}
